package com.sunyard.dal.mapper;

import com.sunyard.dal.bo.device.key.KeyCopyQueryBO;
import com.sunyard.dal.entity.KeyCopy;

import java.util.List;

public interface KeyCopyMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(KeyCopy record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(KeyCopy record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    KeyCopy selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(KeyCopy record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(KeyCopy record);

    /**
     * 查询终端是否存在添加审核信息
     *
     * @param id [id]
     * @return KeyCopy
     **/
    KeyCopy selectByKeyId(Integer keyId);

    /**
     * 分页查询终端审核信息
     *
     * @param keyCopyQueryBO [keyCopyQueryBO]
     * @return List<KeyCopy>
     **/
    List<KeyCopy> getKeyCopyByPage(KeyCopyQueryBO keyCopyQueryBO);
}